<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE DeriveDataTypeable #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE Safe #-}</span><span>
</span><span id="line-3"></span><span>
</span><span id="line-4"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-5"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-6"></span><span class="hs-comment">-- Module      :  Text.Parsec.Error</span><span>
</span><span id="line-7"></span><span class="hs-comment">-- Copyright   :  (c) Daan Leijen 1999-2001, (c) Paolo Martini 2007</span><span>
</span><span id="line-8"></span><span class="hs-comment">-- License     :  BSD-style (see the LICENSE file)</span><span>
</span><span id="line-9"></span><span class="hs-comment">--</span><span>
</span><span id="line-10"></span><span class="hs-comment">-- Maintainer  :  derek.a.elkins@gmail.com</span><span>
</span><span id="line-11"></span><span class="hs-comment">-- Stability   :  provisional</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- Portability :  portable</span><span>
</span><span id="line-13"></span><span class="hs-comment">--</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- Parse errors</span><span>
</span><span id="line-15"></span><span class="hs-comment">--</span><span>
</span><span id="line-16"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-17"></span><span>
</span><span id="line-18"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Text.Parsec.Error</span><span>
</span><span id="line-19"></span><span>    </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier">Message</span></a></span><span> </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#SysUnExpect"><span class="hs-identifier">SysUnExpect</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#UnExpect"><span class="hs-identifier">UnExpect</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#Expect"><span class="hs-identifier">Expect</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier">Message</span></a></span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-20"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#messageString"><span class="hs-identifier">messageString</span></a></span><span>
</span><span id="line-21"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier">ParseError</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#errorPos"><span class="hs-identifier">errorPos</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#errorMessages"><span class="hs-identifier">errorMessages</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#errorIsUnknown"><span class="hs-identifier">errorIsUnknown</span></a></span><span>
</span><span id="line-22"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#showErrorMessages"><span class="hs-identifier">showErrorMessages</span></a></span><span>
</span><span id="line-23"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#newErrorMessage"><span class="hs-identifier">newErrorMessage</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#newErrorUnknown"><span class="hs-identifier">newErrorUnknown</span></a></span><span>
</span><span id="line-24"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#addErrorMessage"><span class="hs-identifier">addErrorMessage</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#setErrorPos"><span class="hs-identifier">setErrorPos</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#setErrorMessage"><span class="hs-identifier">setErrorMessage</span></a></span><span>
</span><span id="line-25"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#mergeError"><span class="hs-identifier">mergeError</span></a></span><span>
</span><span id="line-26"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-27"></span><span>
</span><span id="line-28"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.List.html#"><span class="hs-identifier">Data.List</span></a></span><span> </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="../../base/src/Data.OldList.html#nub"><span class="hs-identifier">nub</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="../../base/src/Data.OldList.html#sort"><span class="hs-identifier">sort</span></a></span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-29"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Typeable.html#"><span class="hs-identifier">Data.Typeable</span></a></span><span> </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="../../base/src/Data.Typeable.Internal.html#Typeable"><span class="hs-identifier">Typeable</span></a></span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-30"></span><span>
</span><span id="line-31"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Text.Parsec.Pos.html"><span class="hs-identifier">Text.Parsec.Pos</span></a></span><span>
</span><span id="line-32"></span><span>
</span><span id="line-33"></span><span class="hs-comment">-- | This abstract data type represents parse error messages. There are</span><span>
</span><span id="line-34"></span><span class="hs-comment">-- four kinds of messages:</span><span>
</span><span id="line-35"></span><span class="hs-comment">--</span><span>
</span><span id="line-36"></span><span class="hs-comment">-- &gt;  data Message = SysUnExpect String</span><span>
</span><span id="line-37"></span><span class="hs-comment">-- &gt;               | UnExpect String</span><span>
</span><span id="line-38"></span><span class="hs-comment">-- &gt;               | Expect String</span><span>
</span><span id="line-39"></span><span class="hs-comment">-- &gt;               | Message String</span><span>
</span><span id="line-40"></span><span class="hs-comment">--</span><span>
</span><span id="line-41"></span><span class="hs-comment">-- The fine distinction between different kinds of parse errors allows</span><span>
</span><span id="line-42"></span><span class="hs-comment">-- the system to generate quite good error messages for the user. It</span><span>
</span><span id="line-43"></span><span class="hs-comment">-- also allows error messages that are formatted in different</span><span>
</span><span id="line-44"></span><span class="hs-comment">-- languages. Each kind of message is generated by different combinators:</span><span>
</span><span id="line-45"></span><span class="hs-comment">--</span><span>
</span><span id="line-46"></span><span class="hs-comment">--     * A 'SysUnExpect' message is automatically generated by the</span><span>
</span><span id="line-47"></span><span class="hs-comment">--       'Text.Parsec.Combinator.satisfy' combinator. The argument is the</span><span>
</span><span id="line-48"></span><span class="hs-comment">--       unexpected input.</span><span>
</span><span id="line-49"></span><span class="hs-comment">--</span><span>
</span><span id="line-50"></span><span class="hs-comment">--     * A 'UnExpect' message is generated by the 'Text.Parsec.Prim.unexpected'</span><span>
</span><span id="line-51"></span><span class="hs-comment">--       combinator. The argument describes the</span><span>
</span><span id="line-52"></span><span class="hs-comment">--       unexpected item.</span><span>
</span><span id="line-53"></span><span class="hs-comment">--</span><span>
</span><span id="line-54"></span><span class="hs-comment">--     * A 'Expect' message is generated by the 'Text.Parsec.Prim.&lt;?&gt;'</span><span>
</span><span id="line-55"></span><span class="hs-comment">--       combinator. The argument describes the expected item.</span><span>
</span><span id="line-56"></span><span class="hs-comment">--</span><span>
</span><span id="line-57"></span><span class="hs-comment">--     * A 'Message' message is generated by the 'fail'</span><span>
</span><span id="line-58"></span><span class="hs-comment">--       combinator. The argument is some general parser message.</span><span>
</span><span id="line-59"></span><span>
</span><span id="line-60"></span><span class="hs-keyword">data</span><span> </span><span id="Message"><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-var">Message</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="SysUnExpect"><span class="annot"><a href="Text.Parsec.Error.html#SysUnExpect"><span class="hs-identifier hs-var">SysUnExpect</span></a></span></span><span> </span><span class="hs-glyph">!</span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-comment">-- @ library generated unexpect</span><span>
</span><span id="line-61"></span><span>             </span><span class="hs-glyph">|</span><span> </span><span id="UnExpect"><span class="annot"><a href="Text.Parsec.Error.html#UnExpect"><span class="hs-identifier hs-var">UnExpect</span></a></span></span><span>    </span><span class="hs-glyph">!</span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-comment">-- @ unexpected something</span><span>
</span><span id="line-62"></span><span>             </span><span class="hs-glyph">|</span><span> </span><span id="Expect"><span class="annot"><a href="Text.Parsec.Error.html#Expect"><span class="hs-identifier hs-var">Expect</span></a></span></span><span>      </span><span class="hs-glyph">!</span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-comment">-- @ expecting something</span><span>
</span><span id="line-63"></span><span>             </span><span class="hs-glyph">|</span><span> </span><span id="Message"><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-var">Message</span></a></span></span><span>     </span><span class="hs-glyph">!</span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-comment">-- @ raw message</span><span>
</span><span id="line-64"></span><span>    </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="../../base/src/Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-65"></span><span>
</span><span id="line-66"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679058288"><span id="local-6989586621679058290"><span id="local-6989586621679058292"><span id="local-6989586621679058294"><span id="local-6989586621679058298"><span id="local-6989586621679058300"><span class="annot"><a href="../../base/src/GHC.Enum.html#Enum"><span class="hs-identifier hs-type">Enum</span></a></span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-67"></span><span>    </span><span id="local-6989586621679058286"><span class="annot"><span class="annottext">fromEnum :: Message -&gt; Int
</span><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var hs-var hs-var hs-var">fromEnum</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#SysUnExpect"><span class="hs-identifier hs-type">SysUnExpect</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span>
</span><span id="line-68"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#UnExpect"><span class="hs-identifier hs-type">UnExpect</span></a></span><span>    </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">1</span></span><span>
</span><span id="line-69"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#Expect"><span class="hs-identifier hs-type">Expect</span></a></span><span>      </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">2</span></span><span>
</span><span id="line-70"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span><span>     </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">3</span></span><span>
</span><span id="line-71"></span><span>    </span><span id="local-6989586621679058282"><span class="annot"><span class="annottext">toEnum :: Int -&gt; Message
</span><a href="../../base/src/GHC.Enum.html#toEnum"><span class="hs-identifier hs-var hs-var hs-var hs-var">toEnum</span></a></span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Message
forall a. HasCallStack =&gt; String -&gt; a
</span><a href="../../base/src/GHC.Err.html#error"><span class="hs-identifier hs-var">error</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;toEnum is undefined for Message&quot;</span></span><span>
</span><span id="line-72"></span><span>
</span><span id="line-73"></span><span class="hs-comment">-- &lt; Return 'True' only when 'compare' would return 'EQ'.</span><span>
</span><span id="line-74"></span><span>
</span><span id="line-75"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679058277"><span class="annot"><span class="hs-identifier hs-type">Eq</span></span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-76"></span><span>
</span><span id="line-77"></span><span>    </span><span id="local-6989586621679058271"><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058271"><span class="hs-identifier hs-var">m1</span></a></span></span><span> </span><span id="local-6989586621679058270"><span class="annot"><span class="annottext">== :: Message -&gt; Message -&gt; Bool
</span><span class="hs-operator hs-var hs-var hs-var hs-var">==</span></span></span><span> </span><span id="local-6989586621679058269"><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058269"><span class="hs-identifier hs-var">m2</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Message -&gt; Int
forall a. Enum a =&gt; a -&gt; Int
</span><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058271"><span class="hs-identifier hs-var">m1</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">Message -&gt; Int
forall a. Enum a =&gt; a -&gt; Int
</span><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058269"><span class="hs-identifier hs-var">m2</span></a></span><span>
</span><span id="line-78"></span><span>
</span><span id="line-79"></span><span class="hs-comment">-- &lt; Compares two error messages without looking at their content. Only</span><span>
</span><span id="line-80"></span><span class="hs-comment">-- the constructors are compared where:</span><span>
</span><span id="line-81"></span><span class="hs-comment">--</span><span>
</span><span id="line-82"></span><span class="hs-comment">-- &gt; 'SysUnExpect' &lt; 'UnExpect' &lt; 'Expect' &lt; 'Message'</span><span>
</span><span id="line-83"></span><span>
</span><span id="line-84"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679058254"><span id="local-6989586621679058256"><span id="local-6989586621679058258"><span id="local-6989586621679058260"><span id="local-6989586621679058262"><span id="local-6989586621679058264"><span class="annot"><span class="hs-identifier hs-type">Ord</span></span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-85"></span><span>    </span><span id="local-6989586621679058248"><span class="annot"><span class="annottext">compare :: Message -&gt; Message -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var">compare</span></span></span><span> </span><span id="local-6989586621679058246"><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058246"><span class="hs-identifier hs-var">msg1</span></a></span></span><span> </span><span id="local-6989586621679058245"><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058245"><span class="hs-identifier hs-var">msg2</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Ordering
forall a. Ord a =&gt; a -&gt; a -&gt; Ordering
</span><span class="hs-identifier hs-var">compare</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Message -&gt; Int
forall a. Enum a =&gt; a -&gt; Int
</span><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058246"><span class="hs-identifier hs-var">msg1</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Message -&gt; Int
forall a. Enum a =&gt; a -&gt; Int
</span><a href="../../base/src/GHC.Enum.html#fromEnum"><span class="hs-identifier hs-var">fromEnum</span></a></span><span> </span><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058245"><span class="hs-identifier hs-var">msg2</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-86"></span><span>
</span><span id="line-87"></span><span class="hs-comment">-- | Extract the message string from an error message</span><span>
</span><span id="line-88"></span><span>
</span><span id="line-89"></span><span class="annot"><a href="Text.Parsec.Error.html#messageString"><span class="hs-identifier hs-type">messageString</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-90"></span><span id="messageString"><span class="annot"><span class="annottext">messageString :: Message -&gt; String
</span><a href="Text.Parsec.Error.html#messageString"><span class="hs-identifier hs-var hs-var">messageString</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#SysUnExpect"><span class="hs-identifier hs-type">SysUnExpect</span></a></span><span> </span><span id="local-6989586621679058244"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058244"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058244"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-91"></span><span class="annot"><a href="Text.Parsec.Error.html#messageString"><span class="hs-identifier hs-var">messageString</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#UnExpect"><span class="hs-identifier hs-type">UnExpect</span></a></span><span>    </span><span id="local-6989586621679058243"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058243"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058243"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-92"></span><span class="annot"><a href="Text.Parsec.Error.html#messageString"><span class="hs-identifier hs-var">messageString</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#Expect"><span class="hs-identifier hs-type">Expect</span></a></span><span>      </span><span id="local-6989586621679058242"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058242"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058242"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-93"></span><span class="annot"><a href="Text.Parsec.Error.html#messageString"><span class="hs-identifier hs-var">messageString</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span><span>     </span><span id="local-6989586621679058241"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058241"><span class="hs-identifier hs-var">s</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058241"><span class="hs-identifier hs-var">s</span></a></span><span>
</span><span id="line-94"></span><span>
</span><span id="line-95"></span><span class="hs-comment">-- | The abstract data type @ParseError@ represents parse errors. It</span><span>
</span><span id="line-96"></span><span class="hs-comment">-- provides the source position ('SourcePos') of the error</span><span>
</span><span id="line-97"></span><span class="hs-comment">-- and a list of error messages ('Message'). A @ParseError@</span><span>
</span><span id="line-98"></span><span class="hs-comment">-- can be returned by the function 'Text.Parsec.Prim.parse'. @ParseError@ is an</span><span>
</span><span id="line-99"></span><span class="hs-comment">-- instance of the 'Show' and 'Eq' classes.</span><span>
</span><span id="line-100"></span><span>
</span><span id="line-101"></span><span class="hs-keyword">data</span><span> </span><span id="ParseError"><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-var">ParseError</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="ParseError"><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-var">ParseError</span></a></span></span><span> </span><span class="hs-glyph">!</span><span class="annot"><a href="Text.Parsec.Pos.html#SourcePos"><span class="hs-identifier hs-type">SourcePos</span></a></span><span> </span><span class="hs-special">[</span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-102"></span><span>    </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="../../base/src/Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-103"></span><span>
</span><span id="line-104"></span><span class="hs-comment">-- | Extracts the source position from the parse error</span><span>
</span><span id="line-105"></span><span>
</span><span id="line-106"></span><span class="annot"><a href="Text.Parsec.Error.html#errorPos"><span class="hs-identifier hs-type">errorPos</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Pos.html#SourcePos"><span class="hs-identifier hs-type">SourcePos</span></a></span><span>
</span><span id="line-107"></span><span id="errorPos"><span class="annot"><span class="annottext">errorPos :: ParseError -&gt; SourcePos
</span><a href="Text.Parsec.Error.html#errorPos"><span class="hs-identifier hs-var hs-var">errorPos</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span id="local-6989586621679058239"><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058239"><span class="hs-identifier hs-var">pos</span></a></span></span><span> </span><span id="local-6989586621679058238"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058238"><span class="hs-identifier hs-var">_msgs</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-108"></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058239"><span class="hs-identifier hs-var">pos</span></a></span><span>
</span><span id="line-109"></span><span>
</span><span id="line-110"></span><span class="hs-comment">-- | Extracts the list of error messages from the parse error</span><span>
</span><span id="line-111"></span><span>
</span><span id="line-112"></span><span class="annot"><a href="Text.Parsec.Error.html#errorMessages"><span class="hs-identifier hs-type">errorMessages</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-113"></span><span id="errorMessages"><span class="annot"><span class="annottext">errorMessages :: ParseError -&gt; [Message]
</span><a href="Text.Parsec.Error.html#errorMessages"><span class="hs-identifier hs-var hs-var">errorMessages</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span id="local-6989586621679058237"><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058237"><span class="hs-identifier hs-var">_pos</span></a></span></span><span> </span><span id="local-6989586621679058236"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058236"><span class="hs-identifier hs-var">msgs</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-114"></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[Message] -&gt; [Message]
forall a. Ord a =&gt; [a] -&gt; [a]
</span><a href="../../base/src/Data.OldList.html#sort"><span class="hs-identifier hs-var">sort</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058236"><span class="hs-identifier hs-var">msgs</span></a></span><span>
</span><span id="line-115"></span><span>
</span><span id="line-116"></span><span class="annot"><a href="Text.Parsec.Error.html#errorIsUnknown"><span class="hs-identifier hs-type">errorIsUnknown</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Bool</span></span><span>
</span><span id="line-117"></span><span id="errorIsUnknown"><span class="annot"><span class="annottext">errorIsUnknown :: ParseError -&gt; Bool
</span><a href="Text.Parsec.Error.html#errorIsUnknown"><span class="hs-identifier hs-var hs-var">errorIsUnknown</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span id="local-6989586621679058235"><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058235"><span class="hs-identifier hs-var">_pos</span></a></span></span><span> </span><span id="local-6989586621679058234"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058234"><span class="hs-identifier hs-var">msgs</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-118"></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[Message] -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier hs-var">null</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058234"><span class="hs-identifier hs-var">msgs</span></a></span><span>
</span><span id="line-119"></span><span>
</span><span id="line-120"></span><span class="hs-comment">-- &lt; Create parse errors</span><span>
</span><span id="line-121"></span><span>
</span><span id="line-122"></span><span class="annot"><a href="Text.Parsec.Error.html#newErrorUnknown"><span class="hs-identifier hs-type">newErrorUnknown</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Text.Parsec.Pos.html#SourcePos"><span class="hs-identifier hs-type">SourcePos</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span>
</span><span id="line-123"></span><span id="newErrorUnknown"><span class="annot"><span class="annottext">newErrorUnknown :: SourcePos -&gt; ParseError
</span><a href="Text.Parsec.Error.html#newErrorUnknown"><span class="hs-identifier hs-var hs-var">newErrorUnknown</span></a></span></span><span> </span><span id="local-6989586621679058232"><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058232"><span class="hs-identifier hs-var">pos</span></a></span></span><span>
</span><span id="line-124"></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SourcePos -&gt; [Message] -&gt; ParseError
</span><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-var">ParseError</span></a></span><span> </span><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058232"><span class="hs-identifier hs-var">pos</span></a></span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><span id="line-125"></span><span>
</span><span id="line-126"></span><span class="annot"><a href="Text.Parsec.Error.html#newErrorMessage"><span class="hs-identifier hs-type">newErrorMessage</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Pos.html#SourcePos"><span class="hs-identifier hs-type">SourcePos</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span>
</span><span id="line-127"></span><span id="newErrorMessage"><span class="annot"><span class="annottext">newErrorMessage :: Message -&gt; SourcePos -&gt; ParseError
</span><a href="Text.Parsec.Error.html#newErrorMessage"><span class="hs-identifier hs-var hs-var">newErrorMessage</span></a></span></span><span> </span><span id="local-6989586621679058231"><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058231"><span class="hs-identifier hs-var">msg</span></a></span></span><span> </span><span id="local-6989586621679058230"><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058230"><span class="hs-identifier hs-var">pos</span></a></span></span><span>
</span><span id="line-128"></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SourcePos -&gt; [Message] -&gt; ParseError
</span><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-var">ParseError</span></a></span><span> </span><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058230"><span class="hs-identifier hs-var">pos</span></a></span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058231"><span class="hs-identifier hs-var">msg</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-129"></span><span>
</span><span id="line-130"></span><span class="annot"><a href="Text.Parsec.Error.html#addErrorMessage"><span class="hs-identifier hs-type">addErrorMessage</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span>
</span><span id="line-131"></span><span id="addErrorMessage"><span class="annot"><span class="annottext">addErrorMessage :: Message -&gt; ParseError -&gt; ParseError
</span><a href="Text.Parsec.Error.html#addErrorMessage"><span class="hs-identifier hs-var hs-var">addErrorMessage</span></a></span></span><span> </span><span id="local-6989586621679058229"><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058229"><span class="hs-identifier hs-var">msg</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span id="local-6989586621679058228"><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058228"><span class="hs-identifier hs-var">pos</span></a></span></span><span> </span><span id="local-6989586621679058227"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058227"><span class="hs-identifier hs-var">msgs</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-132"></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SourcePos -&gt; [Message] -&gt; ParseError
</span><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-var">ParseError</span></a></span><span> </span><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058228"><span class="hs-identifier hs-var">pos</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058229"><span class="hs-identifier hs-var">msg</span></a></span><span class="annot"><span class="annottext">Message -&gt; [Message] -&gt; [Message]
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058227"><span class="hs-identifier hs-var">msgs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-133"></span><span>
</span><span id="line-134"></span><span class="annot"><a href="Text.Parsec.Error.html#setErrorPos"><span class="hs-identifier hs-type">setErrorPos</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Text.Parsec.Pos.html#SourcePos"><span class="hs-identifier hs-type">SourcePos</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span>
</span><span id="line-135"></span><span id="setErrorPos"><span class="annot"><span class="annottext">setErrorPos :: SourcePos -&gt; ParseError -&gt; ParseError
</span><a href="Text.Parsec.Error.html#setErrorPos"><span class="hs-identifier hs-var hs-var">setErrorPos</span></a></span></span><span> </span><span id="local-6989586621679058226"><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058226"><span class="hs-identifier hs-var">pos</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span class="annot"><span class="annottext">SourcePos
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621679058225"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058225"><span class="hs-identifier hs-var">msgs</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-136"></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SourcePos -&gt; [Message] -&gt; ParseError
</span><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-var">ParseError</span></a></span><span> </span><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058226"><span class="hs-identifier hs-var">pos</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058225"><span class="hs-identifier hs-var">msgs</span></a></span><span>
</span><span id="line-137"></span><span>
</span><span id="line-138"></span><span class="annot"><a href="Text.Parsec.Error.html#setErrorMessage"><span class="hs-identifier hs-type">setErrorMessage</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span>
</span><span id="line-139"></span><span id="setErrorMessage"><span class="annot"><span class="annottext">setErrorMessage :: Message -&gt; ParseError -&gt; ParseError
</span><a href="Text.Parsec.Error.html#setErrorMessage"><span class="hs-identifier hs-var hs-var">setErrorMessage</span></a></span></span><span> </span><span id="local-6989586621679058224"><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058224"><span class="hs-identifier hs-var">msg</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span id="local-6989586621679058223"><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058223"><span class="hs-identifier hs-var">pos</span></a></span></span><span> </span><span id="local-6989586621679058222"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058222"><span class="hs-identifier hs-var">msgs</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-140"></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SourcePos -&gt; [Message] -&gt; ParseError
</span><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-var">ParseError</span></a></span><span> </span><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058223"><span class="hs-identifier hs-var">pos</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058224"><span class="hs-identifier hs-var">msg</span></a></span><span> </span><span class="annot"><span class="annottext">Message -&gt; [Message] -&gt; [Message]
forall a. a -&gt; [a] -&gt; [a]
</span><span class="hs-glyph hs-var">:</span></span><span> </span><span class="annot"><span class="annottext">(Message -&gt; Bool) -&gt; [Message] -&gt; [Message]
forall a. (a -&gt; Bool) -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.List.html#filter"><span class="hs-identifier hs-var">filter</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Message
</span><a href="#local-6989586621679058224"><span class="hs-identifier hs-var">msg</span></a></span><span> </span><span class="annot"><span class="annottext">Message -&gt; Message -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">/=</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058222"><span class="hs-identifier hs-var">msgs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-141"></span><span>
</span><span id="line-142"></span><span class="annot"><a href="Text.Parsec.Error.html#mergeError"><span class="hs-identifier hs-type">mergeError</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span>
</span><span id="line-143"></span><span id="mergeError"><span class="annot"><span class="annottext">mergeError :: ParseError -&gt; ParseError -&gt; ParseError
</span><a href="Text.Parsec.Error.html#mergeError"><span class="hs-identifier hs-var hs-var">mergeError</span></a></span></span><span> </span><span id="local-6989586621679058220"><span class="annot"><span class="annottext">e1 :: ParseError
</span><a href="#local-6989586621679058220"><span class="hs-identifier hs-var">e1</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span id="local-6989586621679058219"><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058219"><span class="hs-identifier hs-var">pos1</span></a></span></span><span> </span><span id="local-6989586621679058218"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058218"><span class="hs-identifier hs-var">msgs1</span></a></span></span><span class="hs-special">)</span><span> </span><span id="local-6989586621679058217"><span class="annot"><span class="annottext">e2 :: ParseError
</span><a href="#local-6989586621679058217"><span class="hs-identifier hs-var">e2</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span><span> </span><span id="local-6989586621679058216"><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058216"><span class="hs-identifier hs-var">pos2</span></a></span></span><span> </span><span id="local-6989586621679058215"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058215"><span class="hs-identifier hs-var">msgs2</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-144"></span><span>    </span><span class="hs-comment">-- prefer meaningful errors</span><span>
</span><span id="line-145"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">[Message] -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier hs-var">null</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058215"><span class="hs-identifier hs-var">msgs2</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><span class="hs-operator hs-var">&amp;&amp;</span></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool
</span><span class="hs-identifier hs-var">not</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[Message] -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier hs-var">null</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058218"><span class="hs-identifier hs-var">msgs1</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058220"><span class="hs-identifier hs-var">e1</span></a></span><span>
</span><span id="line-146"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">[Message] -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier hs-var">null</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058218"><span class="hs-identifier hs-var">msgs1</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><span class="hs-operator hs-var">&amp;&amp;</span></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool
</span><span class="hs-identifier hs-var">not</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[Message] -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier hs-var">null</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058215"><span class="hs-identifier hs-var">msgs2</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058217"><span class="hs-identifier hs-var">e2</span></a></span><span>
</span><span id="line-147"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>
</span><span id="line-148"></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058219"><span class="hs-identifier hs-var">pos1</span></a></span><span> </span><span class="annot"><span class="annottext">SourcePos -&gt; SourcePos -&gt; Ordering
forall a. Ord a =&gt; a -&gt; a -&gt; Ordering
</span><span class="hs-operator hs-var">`compare`</span></span><span> </span><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058216"><span class="hs-identifier hs-var">pos2</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-149"></span><span>        </span><span class="hs-comment">-- select the longest match</span><span>
</span><span id="line-150"></span><span>        </span><span class="annot"><span class="annottext">Ordering
</span><span class="hs-identifier hs-var">EQ</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">SourcePos -&gt; [Message] -&gt; ParseError
</span><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-var">ParseError</span></a></span><span> </span><span class="annot"><span class="annottext">SourcePos
</span><a href="#local-6989586621679058219"><span class="hs-identifier hs-var">pos1</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058218"><span class="hs-identifier hs-var">msgs1</span></a></span><span> </span><span class="annot"><span class="annottext">[Message] -&gt; [Message] -&gt; [Message]
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058215"><span class="hs-identifier hs-var">msgs2</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-151"></span><span>        </span><span class="annot"><span class="annottext">Ordering
</span><span class="hs-identifier hs-var">GT</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058220"><span class="hs-identifier hs-var">e1</span></a></span><span>
</span><span id="line-152"></span><span>        </span><span class="annot"><span class="annottext">Ordering
</span><span class="hs-identifier hs-var">LT</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058217"><span class="hs-identifier hs-var">e2</span></a></span><span>
</span><span id="line-153"></span><span>
</span><span id="line-154"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679058208"><span id="local-6989586621679058211"><span class="annot"><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-155"></span><span>    </span><span id="local-6989586621679058204"><span class="annot"><span class="annottext">show :: ParseError -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var hs-var hs-var hs-var">show</span></a></span></span><span> </span><span id="local-6989586621679058202"><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058202"><span class="hs-identifier hs-var">err</span></a></span></span><span>
</span><span id="line-156"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">SourcePos -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ParseError -&gt; SourcePos
</span><a href="Text.Parsec.Error.html#errorPos"><span class="hs-identifier hs-var">errorPos</span></a></span><span> </span><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058202"><span class="hs-identifier hs-var">err</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;:&quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span>
</span><span id="line-157"></span><span>          </span><span class="annot"><span class="annottext">String
-&gt; String -&gt; String -&gt; String -&gt; String -&gt; [Message] -&gt; String
</span><a href="Text.Parsec.Error.html#showErrorMessages"><span class="hs-identifier hs-var">showErrorMessages</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;or&quot;</span></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;unknown parse error&quot;</span></span><span>
</span><span id="line-158"></span><span>                            </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;expecting&quot;</span></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;unexpected&quot;</span></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;end of input&quot;</span></span><span>
</span><span id="line-159"></span><span>                           </span><span class="hs-special">(</span><span class="annot"><span class="annottext">ParseError -&gt; [Message]
</span><a href="Text.Parsec.Error.html#errorMessages"><span class="hs-identifier hs-var">errorMessages</span></a></span><span> </span><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058202"><span class="hs-identifier hs-var">err</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-160"></span><span>
</span><span id="line-161"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679058199"><span class="annot"><span class="hs-identifier hs-type">Eq</span></span><span> </span><span class="annot"><a href="Text.Parsec.Error.html#ParseError"><span class="hs-identifier hs-type">ParseError</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-162"></span><span>    </span><span id="local-6989586621679058191"><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058191"><span class="hs-identifier hs-var">l</span></a></span></span><span> </span><span id="local-6989586621679058190"><span class="annot"><span class="annottext">== :: ParseError -&gt; ParseError -&gt; Bool
</span><span class="hs-operator hs-var hs-var hs-var hs-var">==</span></span></span><span> </span><span id="local-6989586621679058189"><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058189"><span class="hs-identifier hs-var">r</span></a></span></span><span>
</span><span id="line-163"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">ParseError -&gt; SourcePos
</span><a href="Text.Parsec.Error.html#errorPos"><span class="hs-identifier hs-var">errorPos</span></a></span><span> </span><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058191"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">SourcePos -&gt; SourcePos -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">ParseError -&gt; SourcePos
</span><a href="Text.Parsec.Error.html#errorPos"><span class="hs-identifier hs-var">errorPos</span></a></span><span> </span><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058189"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><span class="hs-operator hs-var">&amp;&amp;</span></span><span> </span><span class="annot"><span class="annottext">ParseError -&gt; [String]
</span><a href="#local-6989586621679058188"><span class="hs-identifier hs-var">messageStrs</span></a></span><span> </span><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058191"><span class="hs-identifier hs-var">l</span></a></span><span> </span><span class="annot"><span class="annottext">[String] -&gt; [String] -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">ParseError -&gt; [String]
</span><a href="#local-6989586621679058188"><span class="hs-identifier hs-var">messageStrs</span></a></span><span> </span><span class="annot"><span class="annottext">ParseError
</span><a href="#local-6989586621679058189"><span class="hs-identifier hs-var">r</span></a></span><span>
</span><span id="line-164"></span><span>        </span><span class="hs-keyword">where</span><span>
</span><span id="line-165"></span><span>          </span><span id="local-6989586621679058188"><span class="annot"><span class="annottext">messageStrs :: ParseError -&gt; [String]
</span><a href="#local-6989586621679058188"><span class="hs-identifier hs-var hs-var">messageStrs</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Message -&gt; String) -&gt; [Message] -&gt; [String]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">Message -&gt; String
</span><a href="Text.Parsec.Error.html#messageString"><span class="hs-identifier hs-var">messageString</span></a></span><span> </span><span class="annot"><span class="annottext">([Message] -&gt; [String])
-&gt; (ParseError -&gt; [Message]) -&gt; ParseError -&gt; [String]
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">ParseError -&gt; [Message]
</span><a href="Text.Parsec.Error.html#errorMessages"><span class="hs-identifier hs-var">errorMessages</span></a></span><span>
</span><span id="line-166"></span><span>
</span><span id="line-167"></span><span class="hs-comment">-- Language independent show function</span><span>
</span><span id="line-168"></span><span>
</span><span id="line-169"></span><span class="hs-comment">--  TODO</span><span>
</span><span id="line-170"></span><span class="hs-comment">-- &lt; The standard function for showing error messages. Formats a list of</span><span>
</span><span id="line-171"></span><span class="hs-comment">--    error messages in English. This function is used in the |Show|</span><span>
</span><span id="line-172"></span><span class="hs-comment">--    instance of |ParseError &lt;#ParseError&gt;|. The resulting string will be</span><span>
</span><span id="line-173"></span><span class="hs-comment">--    formatted like:</span><span>
</span><span id="line-174"></span><span class="hs-comment">--</span><span>
</span><span id="line-175"></span><span class="hs-comment">--    |unexpected /{The first UnExpect or a SysUnExpect message}/;</span><span>
</span><span id="line-176"></span><span class="hs-comment">--    expecting /{comma separated list of Expect messages}/;</span><span>
</span><span id="line-177"></span><span class="hs-comment">--    /{comma separated list of Message messages}/</span><span>
</span><span id="line-178"></span><span>
</span><span id="line-179"></span><span class="annot"><a href="Text.Parsec.Error.html#showErrorMessages"><span class="hs-identifier hs-type">showErrorMessages</span></a></span><span> </span><span class="hs-glyph">::</span><span>
</span><span id="line-180"></span><span>    </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="annot"><a href="Text.Parsec.Error.html#Message"><span class="hs-identifier hs-type">Message</span></a></span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-181"></span><span id="showErrorMessages"><span class="annot"><span class="annottext">showErrorMessages :: String
-&gt; String -&gt; String -&gt; String -&gt; String -&gt; [Message] -&gt; String
</span><a href="Text.Parsec.Error.html#showErrorMessages"><span class="hs-identifier hs-var hs-var">showErrorMessages</span></a></span></span><span> </span><span id="local-6989586621679058186"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058186"><span class="hs-identifier hs-var">msgOr</span></a></span></span><span> </span><span id="local-6989586621679058185"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058185"><span class="hs-identifier hs-var">msgUnknown</span></a></span></span><span> </span><span id="local-6989586621679058184"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058184"><span class="hs-identifier hs-var">msgExpecting</span></a></span></span><span> </span><span id="local-6989586621679058183"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058183"><span class="hs-identifier hs-var">msgUnExpected</span></a></span></span><span> </span><span id="local-6989586621679058182"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058182"><span class="hs-identifier hs-var">msgEndOfInput</span></a></span></span><span> </span><span id="local-6989586621679058181"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058181"><span class="hs-identifier hs-var">msgs</span></a></span></span><span>
</span><span id="line-182"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">[Message] -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier hs-var">null</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058181"><span class="hs-identifier hs-var">msgs</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058185"><span class="hs-identifier hs-var">msgUnknown</span></a></span><span>
</span><span id="line-183"></span><span>    </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[String] -&gt; String
forall (t :: * -&gt; *) a. Foldable t =&gt; t [a] -&gt; [a]
</span><a href="../../base/src/Data.Foldable.html#concat"><span class="hs-identifier hs-var">concat</span></a></span><span> </span><span class="annot"><span class="annottext">([String] -&gt; String) -&gt; [String] -&gt; String
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">ShowS -&gt; [String] -&gt; [String]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\n&quot;</span></span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">([String] -&gt; [String]) -&gt; [String] -&gt; [String]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">[String] -&gt; [String]
</span><a href="#local-6989586621679058179"><span class="hs-identifier hs-var">clean</span></a></span><span> </span><span class="annot"><span class="annottext">([String] -&gt; [String]) -&gt; [String] -&gt; [String]
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span>
</span><span id="line-184"></span><span>                 </span><span class="hs-special">[</span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058178"><span class="hs-identifier hs-var">showSysUnExpect</span></a></span><span class="hs-special">,</span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058177"><span class="hs-identifier hs-var">showUnExpect</span></a></span><span class="hs-special">,</span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058176"><span class="hs-identifier hs-var">showExpect</span></a></span><span class="hs-special">,</span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058175"><span class="hs-identifier hs-var">showMessages</span></a></span><span class="hs-special">]</span><span>
</span><span id="line-185"></span><span>    </span><span class="hs-keyword">where</span><span>
</span><span id="line-186"></span><span>      </span><span class="hs-special">(</span><span id="local-6989586621679058173"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058173"><span class="hs-identifier hs-var">sysUnExpect</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679058172"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058172"><span class="hs-identifier hs-var">msgs1</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Message -&gt; Bool) -&gt; [Message] -&gt; ([Message], [Message])
forall a. (a -&gt; Bool) -&gt; [a] -&gt; ([a], [a])
</span><a href="../../base/src/GHC.List.html#span"><span class="hs-identifier hs-var">span</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; Message
</span><a href="Text.Parsec.Error.html#SysUnExpect"><span class="hs-identifier hs-var">SysUnExpect</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Message -&gt; Message -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058181"><span class="hs-identifier hs-var">msgs</span></a></span><span>
</span><span id="line-187"></span><span>      </span><span class="hs-special">(</span><span id="local-6989586621679058169"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058169"><span class="hs-identifier hs-var">unExpect</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679058168"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058168"><span class="hs-identifier hs-var">msgs2</span></a></span></span><span class="hs-special">)</span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Message -&gt; Bool) -&gt; [Message] -&gt; ([Message], [Message])
forall a. (a -&gt; Bool) -&gt; [a] -&gt; ([a], [a])
</span><a href="../../base/src/GHC.List.html#span"><span class="hs-identifier hs-var">span</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; Message
</span><a href="Text.Parsec.Error.html#UnExpect"><span class="hs-identifier hs-var">UnExpect</span></a></span><span>    </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Message -&gt; Message -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058172"><span class="hs-identifier hs-var">msgs1</span></a></span><span>
</span><span id="line-188"></span><span>      </span><span class="hs-special">(</span><span id="local-6989586621679058166"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058166"><span class="hs-identifier hs-var">expect</span></a></span></span><span class="hs-special">,</span><span id="local-6989586621679058165"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058165"><span class="hs-identifier hs-var">messages</span></a></span></span><span class="hs-special">)</span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Message -&gt; Bool) -&gt; [Message] -&gt; ([Message], [Message])
forall a. (a -&gt; Bool) -&gt; [a] -&gt; ([a], [a])
</span><a href="../../base/src/GHC.List.html#span"><span class="hs-identifier hs-var">span</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; Message
</span><a href="Text.Parsec.Error.html#Expect"><span class="hs-identifier hs-var">Expect</span></a></span><span>      </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Message -&gt; Message -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058168"><span class="hs-identifier hs-var">msgs2</span></a></span><span>
</span><span id="line-189"></span><span>
</span><span id="line-190"></span><span>      </span><span id="local-6989586621679058176"><span class="annot"><span class="annottext">showExpect :: String
</span><a href="#local-6989586621679058176"><span class="hs-identifier hs-var hs-var">showExpect</span></a></span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; [Message] -&gt; String
</span><a href="#local-6989586621679058164"><span class="hs-identifier hs-var">showMany</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058184"><span class="hs-identifier hs-var">msgExpecting</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058166"><span class="hs-identifier hs-var">expect</span></a></span><span>
</span><span id="line-191"></span><span>      </span><span id="local-6989586621679058177"><span class="annot"><span class="annottext">showUnExpect :: String
</span><a href="#local-6989586621679058177"><span class="hs-identifier hs-var hs-var">showUnExpect</span></a></span></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; [Message] -&gt; String
</span><a href="#local-6989586621679058164"><span class="hs-identifier hs-var">showMany</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058183"><span class="hs-identifier hs-var">msgUnExpected</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058169"><span class="hs-identifier hs-var">unExpect</span></a></span><span>
</span><span id="line-192"></span><span>      </span><span id="local-6989586621679058178"><span class="annot"><span class="annottext">showSysUnExpect :: String
</span><a href="#local-6989586621679058178"><span class="hs-identifier hs-var hs-var">showSysUnExpect</span></a></span></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool
</span><span class="hs-identifier hs-var">not</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[Message] -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier hs-var">null</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058169"><span class="hs-identifier hs-var">unExpect</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><span class="hs-operator hs-var">||</span></span><span>
</span><span id="line-193"></span><span>                        </span><span class="annot"><span class="annottext">[Message] -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier hs-var">null</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058173"><span class="hs-identifier hs-var">sysUnExpect</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span>
</span><span id="line-194"></span><span>                      </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">String -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier hs-var">null</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058159"><span class="hs-identifier hs-var">firstMsg</span></a></span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058183"><span class="hs-identifier hs-var">msgUnExpected</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot; &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058182"><span class="hs-identifier hs-var">msgEndOfInput</span></a></span><span>
</span><span id="line-195"></span><span>                      </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058183"><span class="hs-identifier hs-var">msgUnExpected</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot; &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058159"><span class="hs-identifier hs-var">firstMsg</span></a></span><span>
</span><span id="line-196"></span><span>          </span><span class="hs-keyword">where</span><span>
</span><span id="line-197"></span><span>              </span><span id="local-6989586621679058159"><span class="annot"><span class="annottext">firstMsg :: String
</span><a href="#local-6989586621679058159"><span class="hs-identifier hs-var hs-var">firstMsg</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Message -&gt; String
</span><a href="Text.Parsec.Error.html#messageString"><span class="hs-identifier hs-var">messageString</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[Message] -&gt; Message
forall a. [a] -&gt; a
</span><a href="../../base/src/GHC.List.html#head"><span class="hs-identifier hs-var">head</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058173"><span class="hs-identifier hs-var">sysUnExpect</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-198"></span><span>
</span><span id="line-199"></span><span>      </span><span id="local-6989586621679058175"><span class="annot"><span class="annottext">showMessages :: String
</span><a href="#local-6989586621679058175"><span class="hs-identifier hs-var hs-var">showMessages</span></a></span></span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; [Message] -&gt; String
</span><a href="#local-6989586621679058164"><span class="hs-identifier hs-var">showMany</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058165"><span class="hs-identifier hs-var">messages</span></a></span><span>
</span><span id="line-200"></span><span>
</span><span id="line-201"></span><span>      </span><span class="hs-comment">-- helpers</span><span>
</span><span id="line-202"></span><span>      </span><span id="local-6989586621679058164"><span class="annot"><span class="annottext">showMany :: String -&gt; [Message] -&gt; String
</span><a href="#local-6989586621679058164"><span class="hs-identifier hs-var hs-var">showMany</span></a></span></span><span> </span><span id="local-6989586621679058156"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058156"><span class="hs-identifier hs-var">pre</span></a></span></span><span> </span><span id="local-6989586621679058155"><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058155"><span class="hs-identifier hs-var">msgs3</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">[String] -&gt; [String]
</span><a href="#local-6989586621679058179"><span class="hs-identifier hs-var">clean</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(Message -&gt; String) -&gt; [Message] -&gt; [String]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="annot"><span class="annottext">Message -&gt; String
</span><a href="Text.Parsec.Error.html#messageString"><span class="hs-identifier hs-var">messageString</span></a></span><span> </span><span class="annot"><span class="annottext">[Message]
</span><a href="#local-6989586621679058155"><span class="hs-identifier hs-var">msgs3</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-203"></span><span>                            </span><span class="hs-special">[</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span>
</span><span id="line-204"></span><span>                            </span><span id="local-6989586621679058154"><span class="annot"><span class="annottext">[String]
</span><a href="#local-6989586621679058154"><span class="hs-identifier hs-var">ms</span></a></span></span><span> </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">String -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier hs-var">null</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058156"><span class="hs-identifier hs-var">pre</span></a></span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[String] -&gt; String
</span><a href="#local-6989586621679058153"><span class="hs-identifier hs-var">commasOr</span></a></span><span> </span><span class="annot"><span class="annottext">[String]
</span><a href="#local-6989586621679058154"><span class="hs-identifier hs-var">ms</span></a></span><span>
</span><span id="line-205"></span><span>                               </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058156"><span class="hs-identifier hs-var">pre</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot; &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">[String] -&gt; String
</span><a href="#local-6989586621679058153"><span class="hs-identifier hs-var">commasOr</span></a></span><span> </span><span class="annot"><span class="annottext">[String]
</span><a href="#local-6989586621679058154"><span class="hs-identifier hs-var">ms</span></a></span><span>
</span><span id="line-206"></span><span>
</span><span id="line-207"></span><span>      </span><span id="local-6989586621679058153"><span class="annot"><span class="annottext">commasOr :: [String] -&gt; String
</span><a href="#local-6989586621679058153"><span class="hs-identifier hs-var hs-var">commasOr</span></a></span></span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span>
</span><span id="line-208"></span><span>      </span><span class="annot"><a href="#local-6989586621679058153"><span class="hs-identifier hs-var">commasOr</span></a></span><span> </span><span class="hs-special">[</span><span id="local-6989586621679058152"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058152"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">]</span><span>      </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058152"><span class="hs-identifier hs-var">m</span></a></span><span>
</span><span id="line-209"></span><span>      </span><span class="annot"><a href="#local-6989586621679058153"><span class="hs-identifier hs-var">commasOr</span></a></span><span> </span><span id="local-6989586621679058151"><span class="annot"><span class="annottext">[String]
</span><a href="#local-6989586621679058151"><span class="hs-identifier hs-var">ms</span></a></span></span><span>       </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[String] -&gt; String
</span><a href="#local-6989586621679058150"><span class="hs-identifier hs-var">commaSep</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[String] -&gt; [String]
forall a. [a] -&gt; [a]
</span><a href="../../base/src/GHC.List.html#init"><span class="hs-identifier hs-var">init</span></a></span><span> </span><span class="annot"><span class="annottext">[String]
</span><a href="#local-6989586621679058151"><span class="hs-identifier hs-var">ms</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot; &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058186"><span class="hs-identifier hs-var">msgOr</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot; &quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">[String] -&gt; String
forall a. [a] -&gt; a
</span><a href="../../base/src/GHC.List.html#last"><span class="hs-identifier hs-var">last</span></a></span><span> </span><span class="annot"><span class="annottext">[String]
</span><a href="#local-6989586621679058151"><span class="hs-identifier hs-var">ms</span></a></span><span>
</span><span id="line-210"></span><span>
</span><span id="line-211"></span><span>      </span><span id="local-6989586621679058150"><span class="annot"><span class="annottext">commaSep :: [String] -&gt; String
</span><a href="#local-6989586621679058150"><span class="hs-identifier hs-var hs-var">commaSep</span></a></span></span><span>          </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; [String] -&gt; String
</span><a href="#local-6989586621679058147"><span class="hs-identifier hs-var">separate</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;, &quot;</span></span><span> </span><span class="annot"><span class="annottext">([String] -&gt; String)
-&gt; ([String] -&gt; [String]) -&gt; [String] -&gt; String
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">[String] -&gt; [String]
</span><a href="#local-6989586621679058179"><span class="hs-identifier hs-var">clean</span></a></span><span>
</span><span id="line-212"></span><span>
</span><span id="line-213"></span><span>      </span><span id="local-6989586621679058147"><span class="annot"><span class="annottext">separate :: String -&gt; [String] -&gt; String
</span><a href="#local-6989586621679058147"><span class="hs-identifier hs-var hs-var">separate</span></a></span></span><span>   </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>     </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span>
</span><span id="line-214"></span><span>      </span><span class="annot"><a href="#local-6989586621679058147"><span class="hs-identifier hs-var">separate</span></a></span><span>   </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-special">[</span><span id="local-6989586621679058146"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058146"><span class="hs-identifier hs-var">m</span></a></span></span><span class="hs-special">]</span><span>    </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058146"><span class="hs-identifier hs-var">m</span></a></span><span>
</span><span id="line-215"></span><span>      </span><span class="annot"><a href="#local-6989586621679058147"><span class="hs-identifier hs-var">separate</span></a></span><span> </span><span id="local-6989586621679058145"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058145"><span class="hs-identifier hs-var">sep</span></a></span></span><span> </span><span class="hs-special">(</span><span id="local-6989586621679058144"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058144"><span class="hs-identifier hs-var">m</span></a></span></span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span id="local-6989586621679058143"><span class="annot"><span class="annottext">[String]
</span><a href="#local-6989586621679058143"><span class="hs-identifier hs-var">ms</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058144"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058145"><span class="hs-identifier hs-var">sep</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; [String] -&gt; String
</span><a href="#local-6989586621679058147"><span class="hs-identifier hs-var">separate</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621679058145"><span class="hs-identifier hs-var">sep</span></a></span><span> </span><span class="annot"><span class="annottext">[String]
</span><a href="#local-6989586621679058143"><span class="hs-identifier hs-var">ms</span></a></span><span>
</span><span id="line-216"></span><span>
</span><span id="line-217"></span><span>      </span><span id="local-6989586621679058179"><span class="annot"><span class="annottext">clean :: [String] -&gt; [String]
</span><a href="#local-6989586621679058179"><span class="hs-identifier hs-var hs-var">clean</span></a></span></span><span>             </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[String] -&gt; [String]
forall a. Eq a =&gt; [a] -&gt; [a]
</span><a href="../../base/src/Data.OldList.html#nub"><span class="hs-identifier hs-var">nub</span></a></span><span> </span><span class="annot"><span class="annottext">([String] -&gt; [String])
-&gt; ([String] -&gt; [String]) -&gt; [String] -&gt; [String]
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; Bool) -&gt; [String] -&gt; [String]
forall a. (a -&gt; Bool) -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.List.html#filter"><span class="hs-identifier hs-var">filter</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Bool -&gt; Bool
</span><span class="hs-identifier hs-var">not</span></span><span> </span><span class="annot"><span class="annottext">(Bool -&gt; Bool) -&gt; (String -&gt; Bool) -&gt; String -&gt; Bool
forall b c a. (b -&gt; c) -&gt; (a -&gt; b) -&gt; a -&gt; c
</span><a href="../../base/src/GHC.Base.html#."><span class="hs-operator hs-var">.</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; Bool
forall (t :: * -&gt; *) a. Foldable t =&gt; t a -&gt; Bool
</span><a href="../../base/src/Data.Foldable.html#null"><span class="hs-identifier hs-var">null</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-218"></span></pre></body></html>